Scale ImageMagick images more carefully.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jul 2013 15:25:54 +0000 (08:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jul 2013 15:25:54 +0000 (08:25 -0700)
commit53585453b8f00e9bc4240662266ea6dc4445aa7d
treef5228582053e3a91a11bc66a46ab5160f26826ea
parent0327ae96a8a7352d33d7cad34a74882e44d39fe5
Scale ImageMagick images more carefully.

* image.c (scale_image_size) [HAVE_IMAGEMAGICK]: New function.
(compute_image_size): Use it.  Define only if HAVE_IMAGEMAGICK.
Be more careful about avoiding undefined behavior after
integer overflow and division by zero.
src/ChangeLog
src/image.c